package cn.edu.day01;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) throws Exception{
        String str[]={"枪","子弹","毒品","淫乱"};
        System.out.println("请输入你想要输入的内容：");
        Scanner scanner=new Scanner(System.in);
        String str1=scanner.next();
        for(int i=0;i<str.length;i++)
        {
           if(str1.contains(str[i]))
           {
               str1=str1.replace(str[i],"**");
           }
        }
        System.out.println(str1);
    }
}
